﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.Profile;

namespace livingwellclinic
{
    public class UserProfiles : ProfileBase
    {
        public static UserProfiles GetUserProfile(string username)
        {
            return Create(username) as UserProfiles;
        }
        public static UserProfiles GetUserProfile()
        {// Error that caused this not to get impelemented
            return Create(Membership.GetUser().UserName) as UserProfiles;
        }
        [SettingsAllowAnonymous(false)]
        public string FirstName
        {
            get { return base["FirstName"] as string; }
            set { base["FirstName"] = value; }
        }
        [SettingsAllowAnonymous(false)]
        public string MiddleIntial
        {
            get { return base["MiddleIntial"] as string; }
            set { base["MiddleIntial"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string LastName
        {
            get { return base["MiddleIntial"] as string; }
            set { base["MiddleIntial"] = value; }
        }
        [SettingsAllowAnonymous(false)]
        public string City
        {
            get { return base["City"] as string; }
            set { base["City"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string Address
        {
            get { return base["Address"] as string; }
            set { base["Address"] = value; }
        }
        [SettingsAllowAnonymous(false)]
        public string Address2
        {
            get { return base["Address2"] as string; }
            set { base["Address2"] = value; }
        }
        [SettingsAllowAnonymous(false)]
        public string State
        {
            get { return base["Address"] as string; }
            set { base["Address"] = value; }
        }
        [SettingsAllowAnonymous(false)]
        public string Zip
        {
            get { return base["Zip"] as string; }
            set { base["Zip"] = value; }
        }
        [SettingsAllowAnonymous(false)]
        public string Phone
        {
            get { return base["Phone"] as string; }
            set { base["Phone"] = value; }
        }
    }
}